<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>管理员用户管理</title>
	<base href="<%=basePath %>" />
    <link rel="stylesheet" type="text/css" href="jquery-easyui-1.4.1/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="css/icon.css">
    <link rel="stylesheet" type="text/css" href="jquery-easyui-1.4.1/themes/color.css">
	<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
	<script type="text/javascript" src="layer/layer.js"></script>
    <script type="text/javascript" src="jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="jquery-easyui-1.4.1/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="js/admin/adstaff.js"></script>
</head>
<body>
	<!-- 搜索功能 -->
    <div style="height: 70px; width: 100%;">
    <div style="float: left; padding:20px 0 0 20px; ">   
        <label for="name">用户名:</label>   
        <input class="easyui-textbox" type="text" name="searchstaffAccount" id="searchstaffAccount"  />   
    </div>   
   <div style="float: left; padding:20px 0 0 20px; ">   
        <label for="name">真实姓名:</label>   
        <input class="easyui-textbox" type="text" name="searchstaffName" id="searchstaffName"  />   
    </div>   
    <div style="float: left; padding:20px 0 0 20px; ">  
        <label for="searchstaffIsOn">状态:</label>   
        <select id="searchstaffIsOn" class="easyui-combobox"
						name="searchstaffIsOn" style="width: 155px;"
						data-options="editable:false,panelHeight:'auto'">
						<option value="" selected="selected">请选择</option>
						<option value="0" >离职</option>
						<option value="1">在职</option>
				</select>
    </div>  
    <div style="float: left; padding:20px 0 0 20px; ">    
    	<button  id="searchAdStaff" class="easyui-linkbutton c1" data-options="iconCls:'icon-search'" type="button" onclick="searchAdStaff();">查询 </button>
    </div> 
   <div style="float: left; padding:20px 0 0 20px; ">    
    	<button  id="resetAdStaffButtn" class="easyui-linkbutton c5" data-options="iconCls:'icon-no'" type="button" onclick="">重置 </button>
    </div> 
    </div>
    <div id="toolbar">
			<c:forEach items="${list}" var="item">
			${item}
			</c:forEach>
	</div>
    
    <!-- 加载数据 -->
    <table id="adstaff"></table>
    
    
    <div id="adstaffdlg" class="easyui-dialog" data-options="iconCls:'icon-save',resizable:true,modal:true" style="width: 400px;height: 300px; padding: 10px 20px" closed="true"
           buttons="#adstaff-dlg-buttons" >
        <div align="center">
        <form id="adstafffm" class="easyui-form" data-options="novalidate:true">
            <table>
            <tbody  id="adstaffTable">
            	<tr>
            		<td><label>用户名:</label></td>
            		<td> <input name="staffAccount" id="staffAccount" onblur="searchCommon();" class="easyui-validatebox textbox" required="true" /></td>
            	</tr>
            	<tr>
            		<td> <label>密&nbsp;&nbsp;码:</label></td>
            		<td><input name="staffPass" id="staffPass" class ="easyui-textbox" value="***" required="true"></td>
            	</tr>
            	<tr>
            		<td> <label>真实姓名:</label></td>
            		<td><input name="staffName" id="staffName" class ="easyui-textbox" required="true"></td>
            	</tr>
            	<tr>
            		<td> <label>联系方式:</label></td>
            		<td><input name="staffTelephone" id="staffTelephone" class ="easyui-textbox" required="true"></td>
            	</tr>
            	<tr>
            		<td> <label>是否在职:</label></td>
            		<td><select id="staffIsOnLine" class="easyui-combobox" required="true"
						name="staffIsOn" style="width: 155px;"
						data-options="editable:false,panelHeight:'auto'">
						<option value="" selected="selected">请选择</option>
						<option value="0" >离职</option>
						<option value="1" >在职</option>
				</select></td>
            	</tr>
            	<tr>
            		<td><label>入职时间:</label></td>
            		<td><input name="staffEntryTime" id="staffEntryTime" data-options="editable:false" class ="easyui-datetimebox" required="true"></td>
            	</tr>
            	<tr>
            		<td><label>离职时间:</label></td>
            		<td><input name="staffLeaveTime" id="staffLeaveTime" data-options="editable:false" class ="easyui-datetimebox"></td>
            	</tr>
            	</tbody>
            </table>
        </form>
    </div>
    <div id="adstaff-dlg-buttons">
    <label id="saveUrl" closed="true"></label>
        <a href="javascript:void(0)" id="save" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="adstaffSave();" style="width:90px">保存</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="adstaffCancle();" style="width:90px">取消</a>
    </div>
    </div>
    <div id="roledlg" class="easyui-dialog" data-options="iconCls:'icon-save',resizable:true,modal:true,closed:true" style="width: 400px;height: 300px; padding: 10px 20px" 
           buttons="#role-buttons" >
           	<div align="center">
           	<form id="rolefm" class="easyui-form" data-options="novalidate:true">
				<table>
					<tr>
						<td><label>身份选择</label> </td>
						<td>
							<input id="role" class="easyui-combobox" name="role" required="true"/>
						</td>
					</tr>
				</table>
			</form>
			</div>
           <div id="role-buttons">
    		<label id="rolesaveUrl" closed="true"></label>
	        <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="saveRoleBtn();" style="width:90px">保存</a>
	        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="cancelRoleBtn();" style="width:90px">取消</a>
    		</div>
   </div>
</body>
</html>